<script setup>
import Nav from '@/views/Nav.vue';
import {RouterView} from 'vue-router';
import { useMenuStore } from '@/stores/menu';
import { onMounted } from 'vue';
let obj = useMenuStore();
</script>

<template>
<div class="box">
    <div class="shang">
        <div class="tu1">
            <div class="title">淘宝管理系统</div>
            <!-- <img src="../assets/img/0.png" alt=""> -->
        </div>
        <div class="tu2">
            <!-- <img src="../assets/img/00.png" alt=""> -->
            <div class="d3">
                <img src="../assets/img/tx.jpg" alt="">
                <div>管理员</div>
            </div>
        </div>
    </div>
    
    <div class="box2">
    <div class="zuo">
        <Nav></Nav>
    </div>
    <div class="you">
        <div class="right">
            <ul class="aaa" v-for="item in obj.tabs" :key="item.dier">
                <li>{{ item.title }}</li>
                <img src="../assets/img/xx.png" @click="obj.dropTab(item.id)" alt="">
            </ul> 
        </div>
        <RouterView></RouterView>
    </div>
</div>
</div>
</template>
<style scoped>
/* *{
    margin: 0;
    padding: 0;
} */
.box{
    width: 90%;
    height: 100%;
    background-color: white;
    /* margin: 0 auto; */
    padding: 20px;
}
.shang{
    width: 1500px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.title{
    font-size: 20px;

}
.tu1{
    width: 250px;
    display: flex;
    justify-content: space-between;
    padding: 15px;
}
.tu1>img{
    width: 30px;
    height: 30px;
    background-color: rgb(0, 157, 155);
}
.tu2{
    width: 250px;
    display: flex;
    /* justify-content: space-between; */
    justify-content: space-around
}
.d3{
    width: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.tu2 img{
    width: 30px;
    height: 30px;
}
.zuo{
    width: 200px;
    height: 700px;
    background-color: rgb(57, 62, 74);
    display: flex;
    
}
ul li{
    font-size: 20px;
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}
.zuo ul li img{
    width: 25px;
    height: 25px;
}
.box2{
    display: flex;
}
.you{
    width: 100%;
    border-top: 7px rgb(255, 80, 0) solid;
    padding: 10px;
}
.diyi{
    height: 60px;
    border-bottom: 2px rgb(0, 157, 155) solid;

}
.right{
    height: 50px;
    display: flex;
    border-bottom: 3px #ccc solid;
    gap: 10px;
}
.aaa{
    display: flex;
    justify-content: center;
    justify-content: space-around;
    flex-direction: row;    
    align-items: center;
    width: 150px;
    height: 40px;
    background-color:rgb(255, 80, 0);
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
    margin-top:-1px ;
}
.right img{
    width: 20px;
    height: 20px;
}
</style>

